import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

export default defineConfig({
  plugins: [vue()],
  build: {
    sourcemap: "inline",
  },
  mode: 'development',
  // 配置代理服务器
  server: {
    proxy: {
      '/api': {
        target: "https://api.map.baidu.com",
        changeOrigin: true,
        rewrite: path => path.replace(/^\/api/, '')
      }
    }
  }
});
